/*
 * Route.cpp
 *
 *  Created on: Nov 1, 2009
 *      Author: jbarreneche
 */

#include "Route.h"

Route::Route() { }

Route::~Route() {
	while (!intersections.isEmpty()) {
		delete intersections.removeFirst();
	}
}

void Route::appendIntersection(Intersection* intersection) {
	this->intersections.append(intersection);
}

util::LinkedList<Intersection*>::Iterator* Route::iterator() {
	return this->intersections.iterator();
}
